package com.schedule.task.dao;

import com.schedule.task.entity.BookUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.math.BigDecimal;
import java.util.List;

@Repository
public interface BookUserMapper extends Mapper<BookUser> {

    /**给用户增加金额跟积分**/
    public void addMoneyScore(@Param("money") BigDecimal money, @Param("uid") Integer uid);

    /** 查找全部用户*/
    public List<BookUser> allUser();

    /** 将用户设置为rank 级别 */
    public void changeRank(@Param("rank") Integer rank, @Param("id") Integer id);
}